using Newtonsoft.Json.Linq;
using SysFrame.Message;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TaskApp.BP;

namespace TaskAPP.Message
{
    /// <summary>
    /// taskapp_main
    /// </summary>
    public class Mstaskapp_main : SysFrame.Message.MsBase
    {
        private int _TASKAPP_MAIN_AUTOID;//AutoID
        private string _TASKAPP_MAIN_ISDEL;//是否删除
        private string _TASKAPP_MAIN_MAKETIME;//新增时间
        private string _TASKAPP_MAIN_MAKEUSER;//新增人
        private string _TASKAPP_MAIN_PARENTID;//上级ID
        private string _TASKAPP_MAIN_MAKEFROM;//来源
        private string _TASKAPP_MAIN_10;//单据编号
        private string _TASKAPP_MAIN_20;//单据类型
        private string _TASKAPP_MAIN_30;//流程实例ID
        private string _TASKAPP_MAIN_40;//当前环节ID
        private string _TASKAPP_MAIN_50;//下一个环节ID
        private string _TASKAPP_MAIN_60;//单据状态
        private string _TASKAPP_MAIN_70;//最后修改人
        private string _TASKAPP_MAIN_80;//最后修日期
        private string _TASKAPP_MAIN_90;//备用1
        private string _TASKAPP_MAIN_100;//备用2
        private string _TASKAPP_MAIN_110;//备用3
        private string _TASKAPP_MAIN_120;//备用4
        private string _TASKAPP_MAIN_130;//备用5
        private string _TASKAPP_MAIN_140;//备用6
        private string _TASKAPP_MAIN_150;//备用7
        private string _TASKAPP_MAIN_160;//备用8
        private string _TASKAPP_MAIN_170;//备用9
        private string _TASKAPP_MAIN_180;//备用10
        private string _TASKAPP_MAIN_190;//备用11
        private string _TASKAPP_MAIN_200;//备用12

        private string _strTASKAPP_MAIN_60;//单据状态
        private List<Mstaskapp_mainlist> _TASKAPP_MAIN_list;//单据明细
        private List<int> _assetids;//资产ID集合


        /// <summary>
        /// 资产ID集合
        /// </summary>	
        public List<int> assetids
        {
            get
            {
                if (_assetids == null && _TASKAPP_MAIN_list != null)
                {
                    return _TASKAPP_MAIN_list.ConvertAll(m => m.TASKAPP_MAINLIST_20);
                }
                else { return _assetids; }
            }
            set { _assetids = value; }
        }


        /// <summary>
        /// 单据明细
        /// </summary>	
        public List<Mstaskapp_mainlist> TASKAPP_MAIN_list
        {
            get { return _TASKAPP_MAIN_list; }
            set { _TASKAPP_MAIN_list = value; }
        }


        /// <summary>
        /// 单据状态
        /// </summary>	
        public string strTASKAPP_MAIN_60
        {
            get { return _strTASKAPP_MAIN_60; }
            set { _strTASKAPP_MAIN_60 = value; }
        }

        /// <summary>
        /// AutoID
        /// </summary>
        public int TASKAPP_MAIN_AUTOID
        {
            get { return _TASKAPP_MAIN_AUTOID; }
            set { _TASKAPP_MAIN_AUTOID = value; }
        }
        /// <summary>
        /// 是否删除
        /// </summary>
        public string TASKAPP_MAIN_ISDEL
        {
            get { return _TASKAPP_MAIN_ISDEL; }
            set { _TASKAPP_MAIN_ISDEL = value; }
        }
        /// <summary>
        /// 新增时间
        /// </summary>
        public string TASKAPP_MAIN_MAKETIME
        {
            get { return _TASKAPP_MAIN_MAKETIME; }
            set { _TASKAPP_MAIN_MAKETIME = value; }
        }
        /// <summary>
        /// 新增人
        /// </summary>
        public string TASKAPP_MAIN_MAKEUSER
        {
            get { return _TASKAPP_MAIN_MAKEUSER; }
            set { _TASKAPP_MAIN_MAKEUSER = value; }
        }
        /// <summary>
        /// 上级ID
        /// </summary>
        public string TASKAPP_MAIN_PARENTID
        {
            get { return _TASKAPP_MAIN_PARENTID; }
            set { _TASKAPP_MAIN_PARENTID = value; }
        }
        /// <summary>
        /// 来源
        /// </summary>
        public string TASKAPP_MAIN_MAKEFROM
        {
            get { return _TASKAPP_MAIN_MAKEFROM; }
            set { _TASKAPP_MAIN_MAKEFROM = value; }
        }
        /// <summary>
        /// 单据编号
        /// </summary>
        public string TASKAPP_MAIN_10
        {
            get { return _TASKAPP_MAIN_10; }
            set { _TASKAPP_MAIN_10 = value; }
        }
        /// <summary>
        /// 单据类型
        /// </summary>
        public string TASKAPP_MAIN_20
        {
            get { return _TASKAPP_MAIN_20; }
            set { _TASKAPP_MAIN_20 = value; }
        }
        /// <summary>
        /// 流程实例ID
        /// </summary>
        public string TASKAPP_MAIN_30
        {
            get { return _TASKAPP_MAIN_30; }
            set { _TASKAPP_MAIN_30 = value; }
        }
        /// <summary>
        /// 当前环节ID
        /// </summary>
        public string TASKAPP_MAIN_40
        {
            get { return _TASKAPP_MAIN_40; }
            set { _TASKAPP_MAIN_40 = value; }
        }
        /// <summary>
        /// 下一个环节ID
        /// </summary>
        public string TASKAPP_MAIN_50
        {
            get { return _TASKAPP_MAIN_50; }
            set { _TASKAPP_MAIN_50 = value; }
        }
        /// <summary>
        /// 单据状态
        /// </summary>
        public string TASKAPP_MAIN_60
        {
            get { return _TASKAPP_MAIN_60; }
            set { _TASKAPP_MAIN_60 = value; }
        }
        /// <summary>
        /// 最后修改人
        /// </summary>
        public string TASKAPP_MAIN_70
        {
            get { return _TASKAPP_MAIN_70; }
            set { _TASKAPP_MAIN_70 = value; }
        }
        /// <summary>
        /// 最后修日期
        /// </summary>
        public string TASKAPP_MAIN_80
        {
            get { return _TASKAPP_MAIN_80; }
            set { _TASKAPP_MAIN_80 = value; }
        }
        /// <summary>
        /// 备用1
        /// </summary>
        public string TASKAPP_MAIN_90
        {
            get { return _TASKAPP_MAIN_90; }
            set { _TASKAPP_MAIN_90 = value; }
        }
        /// <summary>
        /// 备用2
        /// </summary>
        public string TASKAPP_MAIN_100
        {
            get { return _TASKAPP_MAIN_100; }
            set { _TASKAPP_MAIN_100 = value; }
        }
        /// <summary>
        /// 备用3
        /// </summary>
        public string TASKAPP_MAIN_110
        {
            get { return _TASKAPP_MAIN_110; }
            set { _TASKAPP_MAIN_110 = value; }
        }
        /// <summary>
        /// 备用4
        /// </summary>
        public string TASKAPP_MAIN_120
        {
            get { return _TASKAPP_MAIN_120; }
            set { _TASKAPP_MAIN_120 = value; }
        }
        /// <summary>
        /// 备用5
        /// </summary>
        public string TASKAPP_MAIN_130
        {
            get { return _TASKAPP_MAIN_130; }
            set { _TASKAPP_MAIN_130 = value; }
        }
        /// <summary>
        /// 备用6
        /// </summary>
        public string TASKAPP_MAIN_140
        {
            get { return _TASKAPP_MAIN_140; }
            set { _TASKAPP_MAIN_140 = value; }
        }
        /// <summary>
        /// 备用7
        /// </summary>
        public string TASKAPP_MAIN_150
        {
            get { return _TASKAPP_MAIN_150; }
            set { _TASKAPP_MAIN_150 = value; }
        }
        /// <summary>
        /// 备用8
        /// </summary>
        public string TASKAPP_MAIN_160
        {
            get { return _TASKAPP_MAIN_160; }
            set { _TASKAPP_MAIN_160 = value; }
        }
        /// <summary>
        /// 备用9
        /// </summary>
        public string TASKAPP_MAIN_170
        {
            get { return _TASKAPP_MAIN_170; }
            set { _TASKAPP_MAIN_170 = value; }
        }
        /// <summary>
        /// 备用10
        /// </summary>
        public string TASKAPP_MAIN_180
        {
            get { return _TASKAPP_MAIN_180; }
            set { _TASKAPP_MAIN_180 = value; }
        }
        /// <summary>
        /// 备用11
        /// </summary>
        public string TASKAPP_MAIN_190
        {
            get { return _TASKAPP_MAIN_190; }
            set { _TASKAPP_MAIN_190 = value; }
        }
        /// <summary>
        /// 备用12
        /// </summary>
        public string TASKAPP_MAIN_200
        {
            get { return _TASKAPP_MAIN_200; }
            set { _TASKAPP_MAIN_200 = value; }
        }


        /// <summary>
        /// Json
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public static Mstaskapp_main parse(JObject data)
        {
            Mstaskapp_main ms = (Mstaskapp_main)data.ToObject(typeof(Mstaskapp_main));
            return ms;
        }
    }
}
